package cn.fengliu.Dao;

import cn.fengliu.entity.Clz;
import cn.fengliu.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseDao {

    @Select(value = "select * from t_course")
    List<cn.fengliu.entity.Course> findAll();
    int add(Course course);
    int update(Course course);
    int del(String cno);
    public  int getTotal();
    List<Course> findPage(@Param("startnum") int startnum,
                       @Param("pageline") int pageline);
    Course findOne(String cno);

}
